package com.white.databasesbackup.expand;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 非事务方式执行
 * </p>
 *
 * @author huangzy
 * @since 2022/5/7
 */
@Component
public class RunnableTransactionalNotSupported {

    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    public void run(Runnable runnable) {
        runnable.run();
    }

}
